NETCDFHOME = netcdf
FC = gfortran
FCFLAGS = -O2 -lnetcdf -L${NETCDFHOME}/lib

OBJS = global.o io.o criteria.o track.o seed.o lagrangean.o

all: lagrangean

clean:
	-rm *.o *.mod

run: all
	-rm output/*
	./lagrangean

lagrangean: ${OBJS}
	${FC} -o $@ ${OBJS} ${FCFLAGS}

%.o: %.f90
	${FC} -c -I${NETCDFHOME}/include $<
